.scroll-y {
  height: 100vh;
  background-color: #efefef;
}
view {
  height: 500rpx;
  display: flex;
  justify-content: center;
  align-items: center;
}

view:nth-child(odd){
  background-color: lightblue;
}

view:nth-child(even){
  background-color: lightsalmon;
}